#include <bits/stdc++.h>
#include "../../tools/tools.h"
using namespace std;

constexpr int INF = 0x7fffffff; // 无穷大
typedef long long ll;


class Solution {
public:
    double minimumAverage(vector<int>& nums) {
        int ans = 100000;
        ranges::sort(nums);
        for (int i = 0, j = nums.size() - 1; i < j; i++, j--) {
            ans = min(ans, nums[i] + nums[j]);
        }
        return ans / 2.0;
    }
};

int main(int argc, const char** argv) {
    // debug();
    return 0;
}
